-- GENERATED SPELL FOR [Corrupted Servitor] --


function spell0_33354(pUnit, Event) --@Petrify Joints,n/a--
pUnit:FullCastSpellOnTarget(63169,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33354', 20307, 1)
end

function spell1_33354(pUnit, Event) --@Petrify Joints,n/a--
pUnit:FullCastSpellOnTarget(63549,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33354', 20262, 1)
end

function spell2_33354(pUnit, Event) --@Violent Earth,n/a--
pUnit:FullCastSpellOnTarget(63149,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33354', 1500, 1)
end

function Sorts_33354(pUnit, Event)
local choix_sorts_33354 = math.random(0, 2)
if choix_sorts_33354 == 0 then
pUnit:RegisterEvent('spell0_33354', 1, 1)
end
if choix_sorts_33354 == 1 then
pUnit:RegisterEvent('spell1_33354', 1, 1)
end
if choix_sorts_33354 == 2 then
pUnit:RegisterEvent('spell2_33354', 1, 1)
end
end

function mob33354_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_33354', math.random(1500, 3000), 1)
end

function mob33354_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33354_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33354_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(33354, 1, 'mob33354_Action')
RegisterUnitEvent(33354, 2, 'mob33354_Leave')
RegisterUnitEvent(33354, 3, 'mob33354_Kill')
RegisterUnitEvent(33354, 4, 'mob33354_Die')
